package com.downloading.presentacionsamsung;

import android.app.Activity;
import android.content.Context;
import android.graphics.Rect;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.Window;

public class Perfil extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_perfil);

		Rect rect = new Rect();
		Window window = this.getWindow();
		if (window != null) {
			window.getDecorView().getWindowVisibleDisplayFrame(rect);
			android.view.View v = window
					.findViewById(Window.ID_ANDROID_CONTENT);

			android.view.Display display = ((android.view.WindowManager) this
					.getSystemService(Context.WINDOW_SERVICE))
					.getDefaultDisplay();

			// return result title bar height

			int size = display.getHeight() - v.getBottom() + rect.top;
			Log.i("prueba", String.valueOf(size));
		}

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_perfil, menu);

		return true;
	}

}
